---
title: xAI
slug: ../xai
---

<Tip>**Discover xAI models [here](https://hub.continue.dev/xai)**</Tip>

<Info>Get an API key from the [xAI Console](https://console.x.ai/)</Info>

## Configuration

<Tabs>
  <Tab title="YAML">
  ```yaml title="config.yaml"
  name: My Config
  version: 0.0.1
  schema: v1

  models:
    - name: <MODEL_NAME>
      provider: xai
      model: <MODEL_ID>
      apiKey: <YOUR_XAI_API_KEY>
  ```
  </Tab>
  <Tab title="JSON (Deprecated)">
  ```json title="config.json"
  {
    "models": [
      {
        "title": "<MODEL_NAME>",
        "provider": "xai",
        "model": "<MODEL_ID>",
        "apiKey": "<YOUR_XAI_API_KEY>"
      }
    ]
  }
  ```
  </Tab>
</Tabs>

<Info>
  **Check out a more advanced configuration
  [here](https://hub.continue.dev/xai/grok-code-fast-1?view=config)**
</Info>
